Extract Data From ChatGPT
AutomatR.ChatGPT.Activities.ExtractDataFromGPT
The "Extract Data From ChatGPT" activity in AutomatR is part of the ChatGPT activities package, allowing you to extract data from images using the OpenAI GPT model. This activity sends a POST request to the OpenAI API, providing an image along with user instructions, and outputs the extracted data in JSON format.
Properties
Name | Description |
---|---|
Input | |
ApiKey | Allows you to enter the API token (or API key) used for authentication and authorization with the OpenAI API services. This token enables you to make API requests and interact with the OpenAI models. String variables containing the API key. |
Fields | Enter the desired fields to be used to extract data from the provided image files. String variables containing the desired fields for data extraction. |
Image Path | Full path to the image file. String variables containing the path to the image file. |
Misc | |
Display Name | This property allows you to customize the display name of the activity within the workflow. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Extract Data From ChatGPT" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs the extracted data in JSON format. Variables of type JObject to store the extracted data. |
How to use:
- Drag and drop the "Extract Data From ChatGPT" activity onto the workflow.
- Configure the properties by specifying the API key, delay, desired fields for data extraction, and the path to the image file.
- Execute the workflow to extract data from the provided image using the OpenAI GPT model.
Example: Consider an example where the "Extract Data From ChatGPT" activity is used to extract information from an image:
Extract Data From ChatGPT:
Image Path: "C:\Images\example.jpg"
ApiKey: "your_api_key_here"
Fields: "name, date, amount"
Delay: 5
Result: extractedData
In this example, the activity extracts data from the image located at "C:\Images\example.jpg" using the OpenAI GPT model. The API key is specified for authentication, and the desired fields for data extraction include "name," "date," and "amount." The extracted data is stored in the extractedData
variable for further use in the workflow.